ProteusClientCryptoBoxImpl
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun ProteusClient.createSessions(preKeysCrypto: Map<String, Map<String, Map<String, PreKeyCrypto>>>)
Link copied to clipboard
open suspend override fun <T : Any> decrypt(message: ByteArray, sessionId: CryptoSessionId, handleDecryptedMessage: suspend (decryptedMessage: ByteArray) -> T): T
Decrypts a message. In case of success, calls handleDecryptedMessage with the decrypted bytes.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun encryptBatched(message: ByteArray, sessionIds: List<CryptoSessionId>): Map<CryptoSessionId, ByteArray>
Link copied to clipboard
open suspend override fun encryptWithPreKey(message: ByteArray, preKeyCrypto: PreKeyCrypto, sessionId: CryptoSessionId): ByteArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun newPreKeys(from: Int, count: Int): <Error class: unknown class><PreKeyCrypto>
Link copied to clipboard
Link copied to clipboard